import request from '@/utils/request';
let { VUE_APP_ADMIN_API } = process.env
  // 获取工作站详情
export  let findWorkstation= data => request.get(`${VUE_APP_ADMIN_API}/food/safety/workstation/findResponseById`, data);

  // 获取工作站列表
  export  let findListByCondition= data => request.post(`${VUE_APP_ADMIN_API}/food/safety/supervise/unit/findListByCondition`, data);
  // 获取标签列表
  export  let findGroupingList= data => request.get(`${VUE_APP_ADMIN_API}/food/safety/supervise/unit/findGroupingList`, data);
  // 获取标签列表
  export  let getCompanyId= data => request.get(`${VUE_APP_ADMIN_API}/food/safety/supervise/unit/findResponseById`, data);
  // 获取标签列表
  export  let findResponseById= data => request.get(`${VUE_APP_ADMIN_API}/ssa/supervise/unit/findResponseById`, data);

   // 获取食安制度列表
   export  let QueryfoodSafetySystemList= data => request.post(`${VUE_APP_ADMIN_API}/food/safety/system/QueryfoodSafetySystemList`, data);

  
 // 获取联系会议
 export  let conferenceFindListByCondition= data => request.post(`${VUE_APP_ADMIN_API}/food/joint/conference/findListByCondition`, data);
 // 根据id获取联席会议详情
 export  let conferenceFindResponseById= data => request.get(`${VUE_APP_ADMIN_API}/food/joint/conference/findResponseById`, data);
 // 获取培训记录列表
 export  let trainingFindListByCondition= data => request.post(`${VUE_APP_ADMIN_API}/work/station/training/findListByCondition`, data);
  // 获取培训记录列表详情
  export  let trainingFindResponseById= data => request.get(`${VUE_APP_ADMIN_API}/work/station/training/findResponseById`, data);
 
 
 // 获取检查台账列表
 export  let checkFindListByCondition= data => request.post(`${VUE_APP_ADMIN_API}/work/station/check/record/findListByCondition`, data);
 
    //获取检查台账列表详情
    export  let checkFindResponseById= data => request.get(`${VUE_APP_ADMIN_API}/work/station/check/record/findResponseById`, data);
 
 // 获取定期互查列表
 export  let resultListByCondition= data => request.post(`${VUE_APP_ADMIN_API}/work/station/check/result/findListByCondition`, data);
   //获取检查台账列表详情
    export  let resultFindResponseById= data => request.get(`${VUE_APP_ADMIN_API}/work/station/check/result/findResponseById`, data);
 
  
// 获取食安快检列表
export  let quickListByCondition= data => request.post(`${VUE_APP_ADMIN_API}/work/station/quick/check/findListByCondition`, data);
  
   // 获取食安快检列表
export  let quickFindResponseById= data => request.get(`${VUE_APP_ADMIN_API}/work/station/quick/check/findResponseById`, data);
  // 获取人员架构列表
export  let memberFindListByCondition= data => request.post(`${VUE_APP_ADMIN_API}/work/station/member/ship/findListByCondition`, data);
   
   //获取检查台账列表详情
   export  let memberFindResponseById= data => request.get(`${VUE_APP_ADMIN_API}/work/station/member/ship/findResponseById`, data);

  // 获取人员架构列表
  export  let complaintFindListByCondition= data => request.post(`${VUE_APP_ADMIN_API}/workstation/complaint/handling/find-handling-list`, data);
   
   
   //获取投诉详情
   export  let complaintFindById= data => request.get(`${VUE_APP_ADMIN_API}/workstation/complaint/handling/findById`, data);
 

    // 获取宣传公示列表
  export  let publicityFindListByCondition= data => request.post(`${VUE_APP_ADMIN_API}/work/station/publicity/findListByCondition`, data);
   
   
   
// --------------------------------------------------------------------分值解读----------------------------------------------------------
    // 获取宣传公示列表
    export  let findLastByWorkstationId= data => request.get(`${VUE_APP_ADMIN_API}/workstation/score/findLastByWorkstationId`, data);
   
        // 获取宣传公示列表
        export  let scoreFindListByCondition= data => request.post(`${VUE_APP_ADMIN_API}/workstation/score/item/findListByCondition`, data);
   
    
        

                // 获取近十天
                export  let findListByConditionSafety= data => request.post(`${VUE_APP_ADMIN_API}/workstation/score/findListByCondition`, data);
   
           
             
                        // 获取近十天
                        export  let UpdateWorkstation= data => request.post(`${VUE_APP_ADMIN_API}/food/safety/workstation/UpdateWorkstation`, data);
   
                        export  let deleteResponseById= data => request.post(`${VUE_APP_ADMIN_API}/food/safety/workstation/deleteResponseById`, data);
                        

                       


                      // 获取近十天
                      export  let FindClaimMapList= data => request.post(`${VUE_APP_ADMIN_API}/ssa/claim/map/findClaimMapList`, data);
   
                    // 获取近十天
                    export  let updateTechnologicalProcess= data => request.post(`${VUE_APP_ADMIN_API}/ssa/claim/map/updateTechnologicalProcess`, data);
   
                  // 获取近十天
                  export  let exportFindClaimMapList= data => request.get(`${VUE_APP_ADMIN_API}/ssa/claim/map/exportFindClaimMapList`,  { params: data, isAuth: true, loading: true, responseType: "blob" });
   
                  export  let exportReceivingInformation= data => request.get(`${VUE_APP_ADMIN_API}/ssa/claim/map/exportReceivingInformation`,  { params: data, isAuth: true, loading: true, responseType: "blob" });
                
                  export  let findDailyControlList= data => request.post(`${VUE_APP_ADMIN_API}/chain/control/item/findDailyControlList`, data);

                  
            

                      
       export  let findDailyControl= data => request.post(`${VUE_APP_ADMIN_API}/chain/control/result/findDailyControlList`, data);
       export  let findByIdDailyControl= data => request.post(`${VUE_APP_ADMIN_API}/chain/control/result/findByIdDailyControl`, data,{loading:true});
       export  let findControlRectification= data => request.post(`${VUE_APP_ADMIN_API}/chain/control/result/findControlRectification`, data,{loading:true});
       export  let findWeeklyScreeningResult= data => request.post(`${VUE_APP_ADMIN_API}/chain/control/result/findWeeklyScreeningResult`, data,{loading:true});
       export  let findMonthlyScreeningResult= data => request.post(`${VUE_APP_ADMIN_API}/chain/control/result/findMonthlyScreeningResult`, data,{loading:true});